package com.ostrich.widgetdemo;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.kaisengao.likeview.like.KsgLikeView;

/**
 * 贝塞尔曲线点赞效果
 */
public class MainActivity extends AppCompatActivity {
    private KsgLikeView mKsgLikeView;
    private YaoLikeView mYaoLikeView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mKsgLikeView = findViewById(R.id.ksg_view);
        mYaoLikeView = findViewById(R.id.yao_view);

    }

    public void dianzan(View view) {
        mKsgLikeView.addLikeImages(R.drawable.ic_favorite_2,R.drawable.ic_favorite_3);
        mKsgLikeView.addFavor();

        mYaoLikeView.setImages(R.drawable.ic_favorite_2,R.drawable.ic_favorite_4);
        mYaoLikeView.addFavor();
    }
}